package com.pojo;

public class Medicine {
	int mno;
	String mname;
	int mmode;
	String mefficacy;
	int mnum;
	float mperice;
	String mpurperson;
	public int getMno() {
		return mno;
	}
	public void setMno(int mno) {
		this.mno = mno;
	}
	public String getMname() {
		return mname;
	}
	public void setMname(String mname) {
		this.mname = mname;
	}
	public int getMmode() {
		return mmode;
	}
	public void setMmode(int mmode) {
		this.mmode = mmode;
	}
	public String getMefficacy() {
		return mefficacy;
	}
	public void setMefficacy(String mefficacy) {
		this.mefficacy = mefficacy;
	}
	public int getMnum() {
		return mnum;
	}
	public void setMnum(int mnum) {
		this.mnum = mnum;
	}
	public float getMperice() {
		return mperice;
	}
	public void setMperice(float mperice) {
		this.mperice = mperice;
	}
	public String getMpurperson() {
		return mpurperson;
	}
	public void setMpurperson(String mpurperson) {
		this.mpurperson = mpurperson;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((mefficacy == null) ? 0 : mefficacy.hashCode());
		result = prime * result + mmode;
		result = prime * result + ((mname == null) ? 0 : mname.hashCode());
		result = prime * result + mno;
		result = prime * result + mnum;
		result = prime * result + Float.floatToIntBits(mperice);
		result = prime * result
				+ ((mpurperson == null) ? 0 : mpurperson.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Medicine other = (Medicine) obj;
		if (mefficacy == null) {
			if (other.mefficacy != null)
				return false;
		} else if (!mefficacy.equals(other.mefficacy))
			return false;
		if (mmode != other.mmode)
			return false;
		if (mname == null) {
			if (other.mname != null)
				return false;
		} else if (!mname.equals(other.mname))
			return false;
		if (mno != other.mno)
			return false;
		if (mnum != other.mnum)
			return false;
		if (Float.floatToIntBits(mperice) != Float
				.floatToIntBits(other.mperice))
			return false;
		if (mpurperson == null) {
			if (other.mpurperson != null)
				return false;
		} else if (!mpurperson.equals(other.mpurperson))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Medicine [mno=" + mno + ", mname=" + mname + ", mmode=" + mmode
				+ ", mefficacy=" + mefficacy + ", mnum=" + mnum + ", mperice="
				+ mperice + ", mpurperson=" + mpurperson + "]";
	}
	public Medicine(int mno, String mname, int mmode, String mefficacy,
			int mnum, float mperice, String mpurperson) {
		super();
		this.mno = mno;
		this.mname = mname;
		this.mmode = mmode;
		this.mefficacy = mefficacy;
		this.mnum = mnum;
		this.mperice = mperice;
		this.mpurperson = mpurperson;
	}
	public Medicine() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
